import request from '@/utils/request'
import { GEN_SERVER } from '@/config/baseUrl'

// 查询ERP产线数据列表
export function listErpProductionLine(data) {
  return request({
    url: GEN_SERVER['produce-server'] + '/data/erpProductionLine/list',
    method: 'post',
    data: data
  })
}

// 查询ERP产线数据详细
export function getErpProductionLine(id) {
  return request({
    url: GEN_SERVER['produce-server'] + '/data/erpProductionLine/detail',
    method: 'get',
    params: {
        id
    }
  })
}

// 新增/修改ERP产线数据
export function addOrUpdateErpProductionLine(data) {
  return request({
    url: GEN_SERVER['produce-server'] + '/data/erpProductionLine/addOrUpdate',
    method: 'post',
    data: data
  })
}

// 导出ERP产线数据
export function exportErpProductionLine(query) {
  return request({
    url: GEN_SERVER['produce-server'] + '/data/erpProductionLine/export',
    method: 'post',
    data: query
  })
}


export function getListLineCapacity(query) {
  return request({
    url: GEN_SERVER['produce-server'] + '/data/erpProductionLineCapacity/listLineCapacity',
    method: 'get',
    params: query
  })
}
